|
class | CBevel |
| A CStatic descendant which creates a single or two-tone beveled line, oriented horizontally or vertically. More...
|
|
class | CColorBlob |
| A CStatic descendant providing customizable background color and edge style, but no text. More...
|
|
class | CComboBoxPlus |
| A CComboBox descendant providing customizable background and text colors for both the edit and list box portions of the control. More...
|
|
class | CEditPlus |
| A CEdit descendant, providing custom focused and non-focused colors via WM_CTLCOLOR variants. More...
|
|
class | CHyperlinkImage |
| A CStatic descendant providing a context menu with a single entry, allowing the launch of the default browser to a pre - defined URL. More...
|
|
class | CODComboBox |
| An owner-drawn combo box featuring textual content with per-item colors and fonts. More...
|
|
class | CODStatic |
| An owner-drawn CStatic descendant, providing custom background and text colors and edge styles. More...
|
|
class | CStaticPlus |
| A very simple CStatic enhancement, providing custom text and background colors. More...
|
|
class | CStatusBarPlus |
| A CMultiPaneStatusBarCtrl descendant with a child CProgressBarCtrl that can be embedded in a user-selected pane. Default configuration creates a status bar with three panes, with the progress bar embedded in the third. Default pane IDs are ID_DEFAULT_PANE (defined as 0), 1 and 2. More...
|
|
class | CToolTipPlus |
| A CToolTipCtrl descendant providing a couple added member functions making it easier and more convenient to use. More...
|
|
|
enum | CBevelMode { CBevelMode::bmVertical,
CBevelMode::bmHorizontal
} |
|
enum | CBevelStyle { CBevelStyle::bsLine,
CBevelStyle::bsRaised,
CBevelStyle::bsSunken
} |
|
enum | CEdgeStyle { CEdgeStyle::esNone,
CEdgeStyle::esLine,
CEdgeStyle::esBump,
CEdgeStyle::esEtched,
CEdgeStyle::esRaised,
CEdgeStyle::esSunken,
CEdgeStyle::esThinRaised,
CEdgeStyle::esThinSunken
} |
| Style of edge defining control boundaries. More...
|
|
enum | CHorzAlignment { CHorzAlignment::haLeft,
CHorzAlignment::haCenter,
CHorzAlignment::haRight
} |
| Control horizontal placement of text in control window. More...
|
|
enum | CVertAlignment { CVertAlignment::vaTop,
CVertAlignment::vaMiddle,
CVertAlignment::vaBottom
} |
| Control vertical placement of text in control window. More...
|
|
enum | CThemedBackgroundStyle { CThemedBackgroundStyle::tbPrimaryPanel,
CThemedBackgroundStyle::tbMainInstructionPane,
CThemedBackgroundStyle::tbContentPane,
CThemedBackgroundStyle::tbSecondaryPanel,
CThemedBackgroundStyle::tbControlPane
} |
| The CThemedBackgroundStyle enumerants correspond to select TaskDialog Parts, as indicated below. More...
|
|
enum | CThemedTextStyle { CThemedTextStyle::ttMainInstruction,
CThemedTextStyle::ttInstruction,
CThemedTextStyle::ttBodyTitle,
CThemedTextStyle::ttBodyText,
CThemedTextStyle::ttSecondaryText,
CThemedTextStyle::ttLabel,
CThemedTextStyle::ttControlLabel_Normal,
CThemedTextStyle::ttControlLabel_Disabled
} |
| The CThemedTextStyle enumerants correspond to select TextStyle Parts and States, as indicated below. More...
|
|
|
BOOL | OutlineRect (HDC HDestDC, const RECT &RDest) |
| Draw a rectangular outline with the current pen. More...
|
|
CString | Int_To_String (int value, int max_digits) |
| Convert a multi-digit integer into a CString. More...
|
|
CString | Double_To_String (double number, int precision) |
| Convert a double to a CString, with a given number of significant digits. More...
|
|
double | Sgn (double value) |
| Test the sign of a double. More...
|
|
void | GetLastErrorString () |
| Show a Message Box containing human-friendly information about the last failed system API call. More...
|
|
int | GetCharHeight (HDC dc) |
| Returns the height of a standard test string, in pixels. More...
|
|
int | GetTextLineCount (HDC dc, CString text, int width, BOOL IsEditControl) |
| Returns the number of lines of text required to fit a string in a given width. More...
|
|
int | GetTextLength (CString str, HFONT font) |
| Measure the length, in pixels, of a string using a given font. More...
|
|
BOOL | FilePresent (LPCTSTR FullFileName) |
| Tests for the presence of a file using SearchPath. More...
|
|
void | DlgComboInit (int nDlgID, HWND DlgHwnd) |
| Load combo boxes with strings stored in a resources file. More...
|
|
int BIS_WTL_CONTROLS::GetTextLineCount |
( |
HDC |
dc, |
|
|
CString |
text, |
|
|
int |
width, |
|
|
BOOL |
IsEditControl |
|
) |
| |
Returns the number of lines of text required to fit a string in a given width.
This function determines how many lines of text the GDI DrawText API will need to draw a given string, in a user-supplied device context, wrapping at a specified width.
- Parameters
-
dc | The device context in which to measure the string. |
text | The string to measure. |
width | The limit at which to wrap the text to the next line (in pixels). |
IsEditControl | If TRUE , spaces words as if it were a multi-line edit control. |
- Return values
-
int | The number of rows of text that will result from using DrawText to write the given string. |
Definition at line 197 of file MiscFunctions.cpp.
int BIS_WTL_CONTROLS::GetTextLength |
( |
CString |
str, |
|
|
HFONT |
font |
|
) |
| |
Measure the length, in pixels, of a string using a given font.
The GDI function GetTextExtentPoint32 is used to measure the length of a string, in pixels, in a screen-compatible DC, with the supplied font.
- Parameters
-
str | The string to measure. |
font | The font to use when measuring the string. |
- Return values
-
int | The length, in pixels. |
Definition at line 233 of file MiscFunctions.cpp.
void BIS_WTL_CONTROLS::DlgComboInit |
( |
int |
nDlgID, |
|
|
HWND |
DlgHwnd |
|
) |
| |
Load combo boxes with strings stored in a resources file.
There is a bug in ATL (through VS2017, anyway) that prevents combo boxes from loading strings defined at design time through the combo box's property pages. They will show up when the dialog is tested inside the IDE, but not at run time. Call this function from within the dialog's InitDialog handler and it will do the trick.
- Parameters
-
nDlgID | The resource ID of the dialog containing combo boxes to be loaded. |
DlgHwnd | The window handle of the dialog containing the combo boxes. |
Definition at line 297 of file MiscFunctions.cpp.